package com.mmall.service;

import com.mmall.common.ServerResponse;
import com.mmall.vo.CartVo;

public interface ICartService {

    ServerResponse<CartVo> add(Integer userId, Integer productId, Integer count);

    ServerResponse list(Integer userId);

    ServerResponse<CartVo> update(Integer userId, Integer productId, Integer quantity);

    ServerResponse<CartVo> delete(Integer userId, String productIds);

    ServerResponse cartProductCount(Integer userId);

    ServerResponse<CartVo> selectOrUnSelect(Integer userId,Integer productId,Integer checked);
}
